'use strict';
var Koa = require('koa');
var koaRouter = require('koa-router');

var app = new Koa();
var router = koaRouter();

app.use(router['routes']());

router.get('/index', function (ctx, next) {
	ctx.body = 'Hello Koa2.0!';
});
app.listen(3000, ()=>console.log('Koa start at 3000...'));